import ajax from 'common/ajax';
import ajaxUrls from 'common/ajaxUrls';
export const qryBusinessConfig = function(){
    return ajax({
        method: 'post',
        url: ajaxUrls.apiUrl.businessConfig,
        action: 'qryBusinessConfig',
        data: {
            busiName: '',
            pageNum: 1,
            pageRow: 100
        }
    })
};
export const qryTradeConfig = function(busiId = ''){
    return ajax({
        method: 'post',
        url: ajaxUrls.apiUrl.tradeConfig,
        action: 'qryTradeConfig',
        data: {
            busiId: busiId,
            tradeName: '',
            pageNum: 1,
            pageRow: 100
        }
    })
};

export const sourceConfig = function(){
    return ajax({
        method: 'post',
        url: ajaxUrls.apiUrl.sourceConfig,
        action: 'qrySourceConfig',
        data: {}
    })
};

export const sysUser = function(){
    return ajax({
        method: 'post',
        url: ajaxUrls.apiUrl.sysUser,
        action: 'qrySysRole',
        data: {}
    })
};

export const getUserInfo = function(){
    return ajax({
        method: 'post',
        url: ajaxUrls.apiUrl.sysUser,
        action: 'personCenter',
        data: {}
    })
};